#-*- coding:utf-8 -*-
from selenium import webdriver
import time



driver  = webdriver.Firefox(executable_path="D:\geckodriver\geckodriver.exe")

driver.maximize_window()

driver.get("file:///C:/Users/liyan/Desktop/ni/nihao.html")
send = driver.find_element_by_xpath("//div[@id ='li']/input[1]")
send.send_keys(u"你好啊！！！！")
time.sleep(2)
send = driver.find_element_by_xpath("//div[@id ='li']/input[2]")
send.send_keys(u"梁萌萌就是傻！！！")
time.sleep(2)
send = driver.find_element_by_xpath("//div[@id ='li']/input[3]")
send.send_keys(u"怪我喽 ！！！")
time.sleep(2)
send = driver.find_element_by_xpath("//div[@id ='li']/input[4]")
send.send_keys(u"你就是傻！！！")
time.sleep(2)
a  = driver.find_element_by_link_text("点击一下")

a.click()



driver.quit()

